﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UCQuanLyXP.ascx.cs" Inherits="Web.giamthi.UCQuanLyXP" %>
<%@ Register src="../control/DateSelect.ascx" tagname="DateSelect" tagprefix="uc1" %>

<style type="text/css">
    .style1
    {
        width: 500px;
    }
</style>
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
    BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" 
    CellPadding="4" ForeColor="Black" GridLines="Horizontal" 
    onselectedindexchanging="GridView1_SelectedIndexChanging" Width="100%">
    <Columns>
        <asp:BoundField DataField="pcid" HeaderText="PCID" />
         <asp:TemplateField HeaderText="Lớp">
            <ItemTemplate>
                <asp:Label ID="Label1" runat="server" Text='<%# Eval("LopHoc.TenLop") %>'></asp:Label>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Môn Học">
            <ItemTemplate>
                <asp:Label ID="Label1" runat="server" Text='<%# Eval("MonHoc.TenMH") %>'></asp:Label>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:BoundField DataField="magv" HeaderText="Tên Giáo Viên" />
        <asp:BoundField DataField="ngaybatdau" dataformatstring="{0:MM/dd/yyyy}" HeaderText="Ngày bắt đầu" />
        <asp:BoundField DataField="TongSoTiet" HeaderText="Tổng Số Tiết" />
        <asp:BoundField DataField="sotiet" HeaderText="Số tiết" />
         <asp:TemplateField HeaderText="Giờ Học">
            <ItemTemplate>
                <asp:Label ID="Label1" runat="server" Text='<%# Eval("giobatdau") + "-" +Eval("gioketthuc") %>'></asp:Label>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:CommandField ShowSelectButton="True" SelectText="Chọn" />
    </Columns>
    <FooterStyle BackColor="#CCCC99" ForeColor="Black" />
    <HeaderStyle BackColor="#333333" Font-Bold="True" ForeColor="White" />
    <PagerStyle BackColor="White" ForeColor="Black" HorizontalAlign="Right" />
    <RowStyle HorizontalAlign="Center" />
    <SelectedRowStyle BackColor="#CC3333" Font-Bold="True" ForeColor="White" />
    <SortedAscendingCellStyle BackColor="#F7F7F7" />
    <SortedAscendingHeaderStyle BackColor="#4B4B4B" />
    <SortedDescendingCellStyle BackColor="#E5E5E5" />
    <SortedDescendingHeaderStyle BackColor="#242121" />
</asp:GridView>
<p>
    <br />
</p>
<table cellpadding="5" cellspacing="5" class="style1">
    <tr>
        <td>
            Mã phân công (*)</td>
        <td>
            <asp:Label ID="lblPCId" runat="server"></asp:Label>
        </td>
    </tr>
    <tr>
        <td>
            Phòng</td>
        <td>
            <asp:DropDownList ID="ddlPhong" runat="server">
            </asp:DropDownList>
        </td>
    </tr>
    <tr>
        <td>
            Ca (*)</td>
        <td>
            <asp:TextBox ID="txtCa" runat="server"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td>
            Tuần (*)</td>
        <td>
            <asp:TextBox ID="txtTuan" runat="server"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td>
            <asp:Label ID="lblXPId" runat="server" Visible="False"></asp:Label>
        </td>
        <td>
            <asp:Button ID="btnLuu" runat="server" Text="Lưu" onclick="btnLuu_Click" />
            &nbsp;
            <asp:Button ID="btnHuy" runat="server" Text="Hủy" onclick="btnHuy_Click" />
        </td>
    </tr>
</table>

